package com.njsoft.mydemotest;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.github.chrisbanes.photoview.PhotoView;
import com.njsoft.mydemotest.pic.activity.PicBaseActivity;
import com.njsoft.mydemotest.pic.activity.RolloutBaseActivity;
import com.njsoft.mydemotest.pic.tools.RGlideUtil;

public class PicShowActivity extends PicBaseActivity {
    private PhotoView photoView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_pic_show);
        photoView = findViewById(R.id.PhotoView);
        String url = "https://img5.duitang.com/uploads/item/201404/11/20140411214939_XswXa.jpeg";
        //显示图片
        RGlideUtil.setImage(this, url, photoView);
        photoView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}
